package com.samoiloff.util.data {

	/**
	 * @author NM Group
	 */
	public class PropItem {
		
		protected var _obj: Object;		
		
		public function PropItem(obj:Object = null) {
			update(obj);
		}
		
		public function update(obj:Object):void {
			if (obj) {
				_obj = obj;
			} else {
				_obj = {};
			}
		}
		
		public function getValueByProp(propName:String):* {
			return _obj[propName];
		}
		
		public function setValueByProp(propName:String, value:*):void {
			_obj[propName] = value;
		}

		
		public function toObj():Object {
			return _obj;
		}
		
	}
}
